<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Country
 *
 * @author Simon
 */
class Application_Model_Country {

    public static function getCountries() {
        $url = 'http://musicevent.local/json/countries.json';
        $json = file_get_contents($url);
        $array = json_decode($json, true);
        $countries['all']= '';
        foreach ($array['countries'] as $country) {
            $countries[$country['code']]= $country['name'];
        }
        return $countries;

    }
}

